﻿package  
{
	import flash.display.Sprite;
	import flash.geom.Point;
	/**
	 * ...
	 * @author Luan
	 */
	public class Square extends Sprite
	{
		public var px:Number;
		public var py:Number;
		public var pos:Point;
		public function Square(rectwidth:uint,rectheight:uint,fillcolor:uint,posx:uint,posy:uint) 
		{
			pos = new Point(posy, posx);
			px=posx;
			py=posy;
			this.graphics.lineStyle(0, 0xcccccc);
			this.graphics.beginFill(fillcolor);
			this.graphics.drawRect(0, 0, rectwidth, rectheight);
			this.graphics.endFill();
		}		
	}

}